import request from '@/utils/request'

// 查询付款的文件列表
export function listPaymentFile(query) {
  return request({
    url: '/payment/PaymentFile/list',
    method: 'get',
    params: query
  })
}

// 查询付款的文件详细
export function getPaymentFile(fileId) {
  return request({
    url: '/payment/PaymentFile/' + fileId,
    method: 'get'
  })
}

// 新增付款的文件
export function addPaymentFile(data) {
  return request({
    url: '/payment/PaymentFile',
    method: 'post',
    data: data
  })
}

// 修改付款的文件
export function updatePaymentFile(data) {
  return request({
    url: '/payment/PaymentFile',
    method: 'put',
    data: data
  })
}

// 删除付款的文件
export function delPaymentFile(fileId) {
  return request({
    url: '/payment/PaymentFile/' + fileId,
    method: 'delete'
  })
}
